package com.learn.chapter19;

/**
 * @author: liyf
 * @create: 2025-02-07 22:49
 **/
public class Shop {

    private Seller seller;

    public Shop(Seller seller) {
        this.seller = seller;
    }

    public Goods buyBread() {
        Bread bread = seller.askForBread();
        return new Goods(bread);
    }
}
